package com.examsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;

/**
 * @author Administrator
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("question")
public class Question implements Serializable {
    private static final long serialVersionUID = -1;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "question_id",type = IdType.AUTO)
    private int questionId;
    private String questionContent;
    private String questionType;
    private String questionAnswer1;
    private double questionScore;
    private String questionParse1;
    private Integer questionPicture;
}
